package com.e3.basdoc.employee.service;

import java.util.List;

import com.e3.basdoc.employee.model.EmployeeModel;
import com.e3.core.base.ModelCacheManager;
import com.e3.core.cache.CacheManager;

public class EmployeeCacheManager extends ModelCacheManager<EmployeeModel>{
	
	public final static String EMPLOYEE_CACHE = CacheManager.DEFAULT_LRU_CACHE;
	
	public static EmployeeCacheManager INSTANCE = new EmployeeCacheManager();
	
	public void put(EmployeeModel model){
		putModel(EMPLOYEE_CACHE, model);
	}

	public EmployeeModel get(Long id) {
		return getModel(EMPLOYEE_CACHE, id);
	}
	
	public void remove(List<Long> ids){
		removeModels(EMPLOYEE_CACHE,ids);
	}

}
